import { axios } from '@/utils/request'

/**
 * @即时配送公司
 * @param {*} data 
 * @returns 
 */
export function companyList(data) {
  return axios({
    url: '/alipay/delivery/company-list',
    method: 'post',
    data
  })
}

/**
 * @配送商家账户创建
 * @param {Array} logistics_codes // (目前暂时只能传一个) 
 * @returns 
 */
 export function createAccount(data) {
  return axios({
    url: '/alipay/delivery/create-account',
    method: 'post',
    data
  })
}

/**
 * @账户信息
 * @param {*} 
 * @returns 
 */
 export function queryAccount(data) {
  return axios({
    url: '/alipay/delivery/query-account',
    method: 'post',
    data
  })
}

/**
 * @门店创建
 * @param {*} 
 * @returns 
 */
 export function createMd(data) {
  return axios({
    url: '/alipay/delivery/create-md',
    method: 'post',
    data
  })
}

/**
 * @门店详情
 * @param {*} 
 * @returns 
 */
 export function queryMd(data) {
  return axios({
    url: '/alipay/delivery/query-md',
    method: 'post',
    data
  })
}


/**
 * @账户参数
 * @param {*} 
 * @returns 
 */
export function deliveryConf(data) {
  return axios({
    url: '/alipay/delivery/conf',
    method: 'post',
    data
  })
}